home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7989 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: anvil.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: F-keys/cursor keys w/curses?
  5. Date: 28 Feb 1996 12:00:01 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4h2c81INNgbe@anvil.ugrad.cs.ubc.ca>
  8. References: <schellerDnHwLr.FJ9@netcom.com>
  9. NNTP-Posting-Host: anvil.ugrad.cs.ubc.ca
  10. Keywords: function, cursor, curses, input
  11.  
  12. In article <schellerDnHwLr.FJ9@netcom.com>,
  13. Mark J. Scheller <scheller@netcom.com> wrote:
  14. >I'm making an attempt at coding some simple text screens using curses.  One
  15. >thing I would like to do is take action based on the user pressing a cursor
  16. >key or a function key.
  17. >
  18. >I'm using getch() to grab the keypresses -- the problem is that the cursor
  19. >keys and the function keys return multiple key sequences for a keypress.
  20. >Is there something better to use?
  21.  
  22. Check that your TERM variable or TERMCAP matches your terminal.
  23.  
  24. call keypad(stdscr,TRUE); at the start of the application, and any time you
  25. come back from a shell-out (if you do that).
  26.  
  27. Go to comp.unis.programmer
  28.  
  29. >This is on an HP, hpux 9.03.
  30.  
  31. HP-UX curses is awful. My condolences!
  32.  
  33. Don't use curses. Get ncurses.
  34.  
  35. -- 
  36.  
  37.